from rest_framework import permissions


class IsUUIDPermission(permissions.BasePermission):
    def has_permission(self, request, view):
        return "607f5c5a-ce8a-518e-de33-f9434bbed3b1" in request.META.get("HTTP_X_TOKEN", "") or \
            not request.user.is_anonymous
